package com.jjkj.environmental.environmental.bean.model

import com.jjkj.environmental.environmental.utils.DateConverter
import com.jjkj.environmental.environmental.utils.FileHelp
import com.jjkj.environmental.environmental.utils.XmlTagName
import java.util.*

@XmlTagName("vehispara")
class PictureUpLoad(carInfo: CarInfo, path: String, zpzl: String) {

    @XmlTagName("cljcrlsh")
    var cljcrlsh: String? = null
    @XmlTagName("jczbh")
    var jczbh: String? = null
    @XmlTagName("jczxh")
    var jczxh: String? = null
    @XmlTagName("jccs")
    var jccs: String? = null
    @XmlTagName("hphm")
    var hphm: String? = null
    @XmlTagName("hpzl")
    var hpzl: String? = null
    @XmlTagName("clsbm")
    var clsbm: String? = null
    @XmlTagName("zp")
    var zp: String? = null
    @XmlTagName("zpzl")
    var zpzl: String? = null
    @XmlTagName("pssj")
    var pssj: String? = null

    init {
        this.cljcrlsh = carInfo.cljcrlsh
        this.jczbh = carInfo.jczbh
        this.jczxh = carInfo.jczxh
        this.jccs = carInfo.jccs
        this.hphm = carInfo.hphm
        this.hpzl = carInfo.hpzl
        this.clsbm = carInfo.clsbm
        this.pssj = DateConverter.convert(Date())
        this.zp = FileHelp.converter(path)
        this.zpzl = zpzl
    }
}